package com.xmy.cultivate.entity;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * <p>
 * 优惠金额
 * </p>
 *
 * @author hpiggy
 * @since 2024-06-27
 */
@TableName("order_dis_price")
@ApiModel(value = "OrderDisPrice对象", description = "优惠金额")
@Data
public class OrderDisPrice implements Serializable {

    private static final long serialVersionUID = 1L;

    private Long id;

    private Long orderId;

    private Long disOrderId;

    /**
     * 优惠确认，0未确认，1已确认
     */
    private Integer status;

    private BigDecimal disPrice;

    private LocalDate addDate;

    @ApiModelProperty("创建人")
    @ExcelIgnore
    @TableField(fill = FieldFill.INSERT)
    private Long createdId;

    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createdAt;
}
